﻿
namespace Com.FastSearch.SharePoint.BL.SearchManager
{
    /// <summary>
    /// Implementation of the <see cref="ISortField"/> interface.
    /// </summary>
    public class SortField : ISortField
    {
        /// <summary>
        /// Create a sort field with the given settings.
        /// </summary>
        /// <param name="FieldName">the name of the field or rank-profile</param>
        /// <param name="IsRankField">true if the field is a rank-profile, false if it's a regular field</param>
        public SortField(string FieldName, bool IsRankField)
        {
            this.FieldName = FieldName;
            this.IsRankField = IsRankField;
        }

        /// <inheritdoc/>
        public string FieldName
        {
            get;
            private set;
        }

        /// <inheritdoc/>
        public bool IsRankField
        {
            get;
            private set;
        }
    }
}
